const {adminsModel}=require('./models/adminsModel')
const{salesMenModel}=require('../dao/models/salesMenModel')
// 管理员登录
module.exports.adminsLogin = async ({account, password}) => {
    // console.log('dao',params);
    return await adminsModel.find({account, password, code: true})
}
// 管理员登录验证
module.exports.validate = async params =>{
    const data = await adminsModel.find()
    // console.log(params);
    return adminsModel;
}
//销售员登录
module.exports.salesMenLogin = async params=>{
    
    const data =  await salesMenModel.find(params)
    console.log(data, 33333);
    return data
    
}